/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 暖心驿站数 POST /geo/rest/countData */
export async function geoRestCountDataUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/geo/rest/countData', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 删除 POST /geo/rest/deleteData */
export async function geoRestDeleteDataUsingPost({
  body,
  options,
}: {
  body: API.GeoRestBoGeoRestDeleteData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/geo/rest/deleteData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取 POST /geo/rest/getData */
export async function geoRestGetDataUsingPost({
  body,
  options,
}: {
  body: API.GeoRestBoGeoRestGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RGeoRestVo>('/geo/rest/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /geo/rest/pageData */
export async function geoRestPageDataUsingPost({
  body,
  options,
}: {
  body: API.GeoRestBoGeoRestPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoGeoRestVo>('/geo/rest/pageData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询--兑换点 POST /geo/rest/pageDataSco */
export async function geoRestPageDataScoUsingPost({
  body,
  options,
}: {
  body: API.GeoRestBoGeoRestPageDataSco;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoGeoRestVo>('/geo/rest/pageDataSco', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 添加 POST /geo/rest/saveData */
export async function geoRestSaveDataUsingPost({
  body,
  options,
}: {
  body: API.GeoRestBoGeoRestSaveData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/geo/rest/saveData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改 POST /geo/rest/updateDate */
export async function geoRestUpdateDateUsingPost({
  body,
  options,
}: {
  body: API.GeoRestBoGeoRestUpdateDate;
  options?: { [key: string]: unknown };
}) {
  return request<API.RGeoRestVo>('/geo/rest/updateDate', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 上/下架 POST /geo/rest/updateUpFlag */
export async function geoRestUpdateUpFlagUsingPost({
  body,
  options,
}: {
  body: API.GeoRestBoGeoRestUpdateUpFlag;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/geo/rest/updateUpFlag', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
